<template>
  <div>
    <h2>test</h2>
  </div>
</template>

<script>
import * as Api from '@/api/pano'

const isDev = process.env.NODE_ENV === 'development'

export default {
  mounted() {
    this.fetchData()
  },
  methods: {
    async fetchData() {
      let { hotel_id = 0, hall_id = 0, is_old, app = '' } = this.$route.query;
      if (isDev && !hotel_id && !hall_id) {
        hotel_id = 1172;
        hall_id = 5838;
      }
      const data = await Api.panoInfo({
        hall_id,
        hotel_id,
        is_old,
      })
      console.log(data)
    }
  }
}
</script>

<style>

</style>